package com.migu.rbac.util;

/**
 * Desc:常量类
 * Date:2019-01-31
 */
public class Constant {

    private Constant(){

    }

    public static final String AUTHORIZATION_HEADER = "Authorization";

    public static final String PROFILE_DEVELOP = "dev";

    public static final Integer MODULE_CODE_NOT_PERMIT = 10006;

    /**
     * 未授予子系统权限
     */
    public static final String NO_AUTHORITY = "401";

    /**
     * token验证失败
     */
    public static final String VALIDATE_FAIL = "402";

    /**
     * 没有token信息
     */
    public static final String NO_TOKEN = "403";

    /**
     * 验证失败的code
     */
    public static final int VALIDATE_CODE = 302;

    /**
     * error说明:没有子系统权限
     */
    public static final String VALIDATE_NO_AUTHORITY_DESC = "没有子系统权限";

    /**
     * error说明:token验证失败
     */
    public static final String VALIDATE_FAIL_DESC = "token验证失败";

    /**
     * error说明:未获取到token信息
     */
    public static final String VALIDATE_NO_TOKEN_DESC = "未获取到token信息";

    /**
     * 匹配静态资源正则表达式
     */
    public static final String REGEX_STATIC_RESOURCE = "^.*\\.((png|jpe?g|gif|svg)|(woff2?|eot|ttf|otf)|js|css|jsp|html)(\\?.*)?$";

}
